CREATE TABLE `SRLive`.`MsgRFQQuoteBroadcast` (
`securityID` BIGINT NOT NULL DEFAULT 0 COMMENT 'exchange spread ID (eg. CME ProductID or ISE SecurityID)',
`exchSource` ENUM('None','Broker','CME','ISE','CBOE','PHLX','CBOT','NYMEX','COMEX','NMS','ICE','CFE') NOT NULL DEFAULT 'None',
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'first ticker in leg list',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'first ticker in leg list',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'first ticker in leg list',
`securityDesc` TINYTEXT NOT NULL DEFAULT '' COMMENT 'SR constructed;blank on broadcast (filled by tool or SRSE proxy)',
`rfqSource` VARCHAR(255) NOT NULL DEFAULT 'Any',
`rfqStrategy` ENUM('None','SingleLeg','CalHoriz','CalDiag','CalSprd','EqCalSprd','ForexCalSprd','TASCalSprd','Straddle','HorizStraddle','Strip','StraddleStrip','StripMnth','EnrgStrip','BalStrip','UnbalStrip','EnrgInterCommStrip','Strangle','Vertical','Box','Bundle','BundleSprd','BFly','PackBFly','IronBFly','DblBFly','CndnlCurve','Double','Condor','IronCondor','Ratio1x2','Ratio1x3','Ratio2x3','RiskRev','XmasTree','JellyRoll','Guts','ThreeWay','ThreeWayStrdVsCall','ThreeWayStrdVsPut','RedTick','InterCommod','Pack','MnthPack','PackSprd','Crack1x1','IntRateIntCmSprd','ImpTreasIntCmSprd','ComIntCmSprd','InvoiceSwpSprd','Conversion','Horizontal','Generic') NOT NULL DEFAULT 'None',
`isCoveredStrategy` ENUM('None','Yes','No') NOT NULL DEFAULT 'None',
`isTradeable` ENUM('None','Yes','No') NOT NULL DEFAULT 'None',
`rfqBidPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'best bid (buy) price for this RFQ/Spread book',
`rfqBidQuan` INT NOT NULL DEFAULT 0 COMMENT 'cumulative bid (buy) quantity',
`rfqAskPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'best ask (sell) price for this RFQ/Spread book',
`rfqAskQuan` INT NOT NULL DEFAULT 0 COMMENT 'cumulative ask (sell) quantity',
`rfqPrtPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'last print price for this RFQ/Spread',
`rfqPrtSize` INT NOT NULL DEFAULT 0 COMMENT 'last print size for this RFQ/Spread',
`rfqPrtVolume` INT NOT NULL DEFAULT 0 COMMENT 'total print volume (for session) for this RFQ/Spread',
`rfqPrtTime` BIGINT NOT NULL DEFAULT 0,
`bidPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'best bid (buy) price for this RFQ/Spread from individual legs',
`bidQuan` INT NOT NULL DEFAULT 0 COMMENT 'minimum bid (buy) quantity from individual legs',
`askPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'best ask (sell) price for this RFQ/Spread from individual legs',
`askQuan` INT NOT NULL DEFAULT 0 COMMENT 'minimum ask (sell) quantity from individual legs',
`surfDelta` FLOAT NOT NULL DEFAULT 0 COMMENT 'delta of all legs',
`surfVega` FLOAT NOT NULL DEFAULT 0 COMMENT 'vega of all legs',
`surfPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'surfPrice (SR mid-market) of all legs',
`theoPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'theoPrice (if applicable) of all legs',
`theoPriceLo` FLOAT NOT NULL DEFAULT 0 COMMENT 'theoPrice (if applicable) of all legs (best way)',
`theoPriceHi` FLOAT NOT NULL DEFAULT 0 COMMENT 'theoPrice (if applicable) of all legs (worst way)',
`minUPrc` DOUBLE NOT NULL DEFAULT 0 COMMENT 'min uPrc of all option legs',
`maxUPrc` DOUBLE NOT NULL DEFAULT 0 COMMENT 'max uPrc of all option legs',
`minYears` FLOAT NOT NULL DEFAULT 0 COMMENT 'min years of all option legs',
`maxYears` FLOAT NOT NULL DEFAULT 0 COMMENT 'max years of all option legs',
`legSecTypes` VARCHAR(255) NOT NULL DEFAULT 'Any' COMMENT 'multi value',
`exchange` VARCHAR(8) NOT NULL DEFAULT '' COMMENT 'comma separated list',
`grpNum` INT NOT NULL DEFAULT 0 COMMENT 'industry group number (equities only)',
`sector` VARCHAR(16) NOT NULL DEFAULT '' COMMENT 'user defined sector code (if any)',
`riskClass` VARCHAR(8) NOT NULL DEFAULT '' COMMENT 'risk class letter code',
`optStatus` ENUM('Hold','TwoWay','BuyOnly','SellOnly','CloseOnly','CloseNow','CloseRisk','BuyCloseOnly','SellCloseOnly') NOT NULL DEFAULT 'Hold',
`posVega` FLOAT NOT NULL DEFAULT 0,
`posGamma` FLOAT NOT NULL DEFAULT 0,
`posTheta` FLOAT NOT NULL DEFAULT 0,
`posDelta` FLOAT NOT NULL DEFAULT 0,
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'PTP timestamp of most recent message update',
`filterId` BIGINT NOT NULL DEFAULT 0 COMMENT 'used by tool/toolServer session to multiplex filters',
`numLegs` INT NOT NULL DEFAULT 0,
`QuoteLegsList` JSON NOT NULL DEFAULT JSON_OBJECT() CHECK(JSON_VALID(QuoteLegsList)),
PRIMARY KEY USING HASH (`securityID`,`exchSource`),
KEY `TickerIndex` (`ticker_tk`) USING HASH
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='Live spread quotes with SpiderRock markup details for equity and future option spreads. Legs details are included in a packed field. This table contains the most recent market for each spread.';